-
Notifications
You must be signed in to change notification settings - Fork 8k
posix: system_database_r: remove invalid compilation filters #95224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
posix: system_database_r: remove invalid compilation filters #95224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the commit message is unrelated the actual change, unless I'm missing something.
@JarmouniA - I forgot to fill in a part of the commit message, but it is the right one. Let me update Edit: oh, actually - the |
pwd.c and grp.c both had incorrect preprocessor guards around the stubs that they were implementing. Functions were surrounded by ```cpp ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS .. endif /* CONFIG_POSIX_THREAD_SAFE_FUNCTIONS */ ``` Which is not at all accurate, since that subprofiling option group is `(CONFIG_)POSIX_SYSTEM_DATABASE_R` (which is a PR that is in-draft). Remove the guards, since they are invalid anyway, and at most an application will link properly. We don't really need the guards anyway, since conditional compilation will be used to link the files into the build. Signed-off-by: Chris Friedt <[email protected]>
e86abfe
to
563f892
Compare
|
Are you referring to this? zephyr/lib/posix/options/CMakeLists.txt Line 142 in 1e85543
|
Not exactly. This from #84858 if (NOT CONFIG_TC_PROVIDES_POSIX_SYSTEM_DATABASE_R)
zephyr_library_sources_ifdef(CONFIG_POSIX_SYSTEM_DATABASE_R
system_database_priv.c
system_database_r.c
)
endif() |
The files
pwd.c
andgrp.c
both had incorrect preprocessor guards around the stubs that they were implementing. Functions were surrounded bywhich is not at all accurate, since that subprofiling option group is
(CONFIG_)POSIX_SYSTEM_DATABASE_R
.https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
Remove the guards, since they are invalid anyway, and at least allow applications to link properly.
Required by #88547